import request from '@/utils/request'

export function getList(data: any) {
  return request({
    url: '/admin/giftList',
    method: 'post',
    data,
  })
}

export function doAdd(data: any) {
  return request({
    url: '/admin/giftAdd',
    method: 'post',
    data,
  })
}

export function doDelete(data: any) {
  return request({
    url: '/admin/giftDel',
    method: 'post',
    data,
  })
}

export function getRecordList(data: any) {
  return request({
    url: '/admin/giftRecord',
    method: 'post',
    data,
  })
}

export function doRecordDelete(data: any) {
  return request({
    url: '/admin/giftRecordDel',
    method: 'post',
    data,
  })
}
